package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgInformationProjectMapper;
import com.ruoyi.project.domain.YqgInformationProject;
import com.ruoyi.project.service.IYqgInformationProjectService;

/**
 * 项目信息Service业务层处理
 *
 * @author dr
 * @date 2023-04-17
 */
@Service
public class YqgInformationProjectServiceImpl implements IYqgInformationProjectService
{
    @Autowired
    private YqgInformationProjectMapper yqgInformationProjectMapper;

    /**
     * 查询项目信息
     *
     * @param ID 项目信息主键
     * @return 项目信息
     */
    @Override
    public YqgInformationProject selectYqgInformationProjectByID(Long ID)
    {
        return yqgInformationProjectMapper.selectYqgInformationProjectByID(ID);
    }

    /**
     * 查询项目信息列表
     *
     * @param yqgInformationProject 项目信息
     * @return 项目信息
     */
    @Override
    public List<YqgInformationProject> selectYqgInformationProjectList(YqgInformationProject yqgInformationProject)
    {
        return yqgInformationProjectMapper.selectYqgInformationProjectList(yqgInformationProject);
    }

    /**
     * 新增项目信息
     *
     * @param yqgInformationProject 项目信息
     * @return 结果
     */
    @Override
    public int insertYqgInformationProject(YqgInformationProject yqgInformationProject)
    {
        return yqgInformationProjectMapper.insertYqgInformationProject(yqgInformationProject);
    }

    /**
     * 修改项目信息
     *
     * @param yqgInformationProject 项目信息
     * @return 结果
     */
    @Override
    public int updateYqgInformationProject(YqgInformationProject yqgInformationProject)
    {
        return yqgInformationProjectMapper.updateYqgInformationProject(yqgInformationProject);
    }

    /**
     * 批量删除项目信息
     *
     * @param IDs 需要删除的项目信息主键
     * @return 结果
     */
    @Override
    public int deleteYqgInformationProjectByIDs(Long[] IDs)
    {
        return yqgInformationProjectMapper.deleteYqgInformationProjectByIDs(IDs);
    }

    /**
     * 删除项目信息信息
     *
     * @param ID 项目信息主键
     * @return 结果
     */
    @Override
    public int deleteYqgInformationProjectByID(Long ID)
    {
        return yqgInformationProjectMapper.deleteYqgInformationProjectByID(ID);
    }

    @Override
    public YqgInformationProject selectByProjectCode(String roomType) {
        YqgInformationProject result =   yqgInformationProjectMapper.selectByProjectCode(roomType);
        return result;
    }
}
